
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition template="template.xhtml"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:comp="http://java.sun.com/jsf/composite/componentes"
	xmlns:t="http://myfaces.apache.org/tomahawk"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">
	<ui:define name="coluna_central">

		<div class="row">
			<div class="span12">
				<ul class="breadcrumb">
					<li><a href="">Comer e Beber</a></li>
				</ul>
				<h:form>
					<ui:repeat var="listOfertas"
						value="#{comerebeberBean.listaOfertas}">
						<p:column>
							<div class="thumbnail hover span3" style="width: 200px">
								<h:commandLink id="imagemOferta"
									action="#{comerebeberBean.visualizarOferta}">
									<img
										src="data:image/png;base64,${listOfertas.codProduto.foto}"
										style="width: 230px; height: 162px"></img>
								</h:commandLink>
								<br />
								<div class="thumbnail center">
									<h:outputText
										value="#{listOfertas.codProduto.nomeProduto}"></h:outputText>
									<p />
									<h:outputText
										value="R$ #{listOfertas.codProduto.valorProduto}"></h:outputText>
								</div>
							</div>
						</p:column>
					</ui:repeat>
				</h:form>
				<div class="row">
					<div class="span12">
						<ul class="thumbnails">
							<p /> 
						</ul>
					</div>
				</div>
			</div>
		</div>
	</ui:define>
</ui:composition>